import Vue from 'vue'
import FastClick from 'fastclick'
import router from '@/router'
import store from './store'
import components from '@/components'
import { ConfirmPlugin, AlertPlugin, ToastPlugin, WechatPlugin } from 'vux'
import App from './App'

// 注冊全局confirm
Vue.use(ConfirmPlugin)
Vue.use(AlertPlugin)
Vue.use(ToastPlugin)
Vue.use(WechatPlugin)

// 注册全局组件
Vue.use(components)

// 解决移动端点击延迟300S事件
FastClick.attach(document.body)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  template: '<App/>',
  store,
  components: { App },
  router
})
